﻿<controls:ChildWindow
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
           xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" x:Class="AstekServis.Views.yeniServis"
           Width="850" Height="600" 
           Title="Servis Kaydı" xmlns:toolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit" xmlns:dxg="http://schemas.devexpress.com/winfx/2008/xaml/datagrid">
    <Grid x:Name="LayoutRoot" Margin="2">
        <Grid.RowDefinitions>
        	<RowDefinition Height="0.241*" />
        	<RowDefinition Height="0.759*"/>
        	<RowDefinition Height="Auto" />
        </Grid.RowDefinitions>

        <Button x:Name="btnCancel" Content="İptal" Click="CancelButton_Click" Width="75" Height="23" HorizontalAlignment="Right" Margin="0,12,0,0" Grid.Row="2" />
        <Button x:Name="btnNext" Content="Sonraki" Click="OKButton_Click" Width="75" Height="23" HorizontalAlignment="Right" Margin="0,12,79,0" Grid.Row="2" />
    	<controls:TabControl x:Name="tabControl1" Margin="0" Grid.Row="1" SelectionChanged="tabControl1_SelectionChanged">
    		<controls:TabItem Header="Araç Bilgileri">
    			<Grid AllowDrop="False" IsHitTestVisible="True">
    				<Grid.RowDefinitions>
    					<RowDefinition Height="4*" />
    					<RowDefinition Height="28*"/>
    					<RowDefinition Height="28*"/>
    					<RowDefinition Height="28*"/>
    					<RowDefinition Height="28*"/>
    					<RowDefinition Height="29*"/>
    					<RowDefinition Height="28*"/>
    					<RowDefinition Height="29*"/>
    					<RowDefinition Height="28*"/>
    					<RowDefinition Height="28*"/>
                        <RowDefinition Height="104*" />
                    </Grid.RowDefinitions>
    				<Grid.ColumnDefinitions>
    					<ColumnDefinition Width="0.173*"/>
    					<ColumnDefinition Width="0.827*"/>
    				</Grid.ColumnDefinitions>
    				<TextBox Margin="2,1,293,2" TextWrapping="Wrap" Grid.Column="1" Grid.Row="1" Name="txtMusteri" KeyDown="txtMusteri_KeyDown" TabIndex="1" />
    				<sdk:DatePicker  HorizontalAlignment="Left" Margin="2,2,0,2" Width="161" Grid.Column="1" Grid.Row="3" Name="dteGelisTarihi" SelectedDateFormat="Long" KeyDown="dteGelisTarihi_KeyDown" TabIndex="3" />
    				<sdk:DatePicker HorizontalAlignment="Left" Margin="2,2,0,2" Width="161" Grid.Column="1" Grid.Row="4" Name="dteGidisTarihi" SelectedDateFormat="Long" KeyDown="dteGidisTarihi_KeyDown" IsTabStop="True" TabIndex="5" />
    				<sdk:DatePicker HorizontalAlignment="Left" Margin="2,2,0,0" Width="161" Grid.Column="1" Grid.Row="6" Name="dteBitisTarihi" SelectedDateFormat="Long" KeyDown="dteBitisTarihi_KeyDown" TabIndex="9" />
    				<sdk:DatePicker HorizontalAlignment="Left" Margin="2,2,0,2" Width="161" Grid.Column="1" Grid.Row="5" Name="dteBaslamaTarihi" SelectedDateFormat="Long" KeyDown="dteBaslamaTarihi_KeyDown" TabIndex="7" />
    				<TextBox Margin="2,3,0,2" TextWrapping="Wrap" HorizontalAlignment="Left" Width="161" Grid.Column="1" Grid.Row="2" Name="txtMusteriTelefon" KeyDown="txtMusteriTelefon_KeyDown" TabIndex="2" />
    				<TextBox Margin="2,4,0,2" TextWrapping="Wrap" HorizontalAlignment="Left" Width="198" Grid.Column="1" Grid.Row="7" Name="txtHizmetYeri" KeyDown="txtHizmetYeri_KeyDown" TabIndex="11" />
    				<ComboBox HorizontalAlignment="Left" Margin="2,2,0,1" Width="198" Grid.Column="1" Grid.Row="8" Name="cmbServis" KeyDown="cmbServis_KeyDown" TabIndex="12" IsTabStop="False" />
    				<TextBox Margin="2,4,0,6" TextWrapping="Wrap" Grid.Column="1" HorizontalAlignment="Left" Width="312" Grid.Row="10" Name="txtNot" />
    				<TextBlock Margin="0,5,4,5" TextWrapping="Wrap" Text="Müşteri :" TextAlignment="Right" Grid.Row="1" HorizontalAlignment="Right"/>
    				<TextBlock Margin="0,5,4,5" TextWrapping="Wrap" Text="Müşteri Telefonu :" TextAlignment="Right" Grid.Row="2" HorizontalAlignment="Right"/>
    				<TextBlock Margin="0,5,4,5" Grid.Row="3" TextWrapping="Wrap" Text="Otobüs Geliş Tarihi :" HorizontalAlignment="Right" TextAlignment="Right"/>
    				<TextBlock Margin="0,5,4,5" Grid.Row="4" TextWrapping="Wrap" Text="Otobüs Gidiş Tarihi :" HorizontalAlignment="Right" TextAlignment="Right"/>
    				<TextBlock Margin="0,5,4,5" Grid.Row="5" TextWrapping="Wrap" Text="Servis Başlama Tarihi :" HorizontalAlignment="Right" TextAlignment="Right"/>
    				<TextBlock Margin="0,5,4,5" Grid.Row="6" TextWrapping="Wrap" Text="Servis Bitiş Tarihi :" HorizontalAlignment="Right" TextAlignment="Right"/>
    				<TextBlock Margin="0,5,4,5" Grid.Row="7" TextWrapping="Wrap" Text="Hizmet Yeri :" HorizontalAlignment="Right" TextAlignment="Right"/>
    				<TextBlock Margin="0,5,4,5" Grid.Row="8" TextWrapping="Wrap" Text="Servis :" HorizontalAlignment="Right" TextAlignment="Right"/>
    				<TextBlock Margin="0,5,4,5" Grid.Row="10" TextWrapping="Wrap" Text="Notlar :" HorizontalAlignment="Right" TextAlignment="Right" Height="12" VerticalAlignment="Top"/>
                    <toolkit:TimePicker Grid.Column="1" Grid.Row="3" Height="Auto" HorizontalAlignment="Left" Margin="170,2,0,2" x:Name="tmrGelis" VerticalAlignment="Stretch" Width="117" KeyDown="tmrGelis_KeyDown" TabIndex="4" />
                    <toolkit:TimePicker Grid.Row="4" Height="Auto" HorizontalAlignment="Left" Margin="170,2,0,2" x:Name="tmrGidis" VerticalAlignment="Stretch" Width="117" Grid.Column="1" KeyDown="tmrGidis_KeyDown" TabIndex="6" />
                    <toolkit:TimePicker Grid.Row="5" Height="Auto" HorizontalAlignment="Left" Margin="170,2,0,2" x:Name="tmrBaslama" VerticalAlignment="Stretch" Width="117" Grid.Column="1" KeyDown="tmrBaslama_KeyDown" TabIndex="8" />
                    <toolkit:TimePicker Grid.Row="6" Height="Auto" HorizontalAlignment="Left" Margin="170,2,0,2" x:Name="tmrBitis" VerticalAlignment="Stretch" Width="117" Grid.Column="1" KeyDown="tmrBitis_KeyDown" TabIndex="10" />
                    <TextBlock Grid.Row="9" HorizontalAlignment="Right" Margin="0,7,4,3" Text="Kapama Nedeni :" TextAlignment="Right" TextWrapping="Wrap" />
                    <TextBox Grid.Row="9" HorizontalAlignment="Left" Margin="2,3,0,2" Name="txtKapamaNedeni" TextWrapping="Wrap" Width="198" Grid.Column="1" IsReadOnly="True" />
                    <ListBox Grid.Row="6" Grid.RowSpan="5" Height="211" HorizontalAlignment="Left" Margin="440,0,0,0" Name="lstTespitedilenler" VerticalAlignment="Top" Width="235" Grid.Column="1" />
                    <TextBlock Grid.Row="5" HorizontalAlignment="Right" Margin="0,5,51,5" Text="Teknisyenin yaptığı işler" TextAlignment="Right" TextWrapping="Wrap" Grid.Column="1" />
                </Grid>
    		</controls:TabItem>
    		<controls:TabItem Header="Sorunlar">
    			<Grid Background="White">
    				<ListBox HorizontalAlignment="Left" Margin="4,4,0,0" Width="402" Height="127" VerticalAlignment="Top" d:LayoutOverrides="VerticalAlignment, Height" Name="lstSorunlar" />
    				<ListBox HorizontalAlignment="Left" Margin="4,160,0,0" Width="402" Height="106" VerticalAlignment="Top" d:LayoutOverrides="VerticalAlignment, Height" Name="lstEklenenler" />
    				<Button Content="+" HorizontalAlignment="Left" Margin="5,135,0,0" Width="20" Height="20" VerticalAlignment="Top" d:LayoutOverrides="Height" Name="btnekle" />
    				<Button Content="-" HorizontalAlignment="Left" Margin="31,135,0,0" Width="20" Height="20" RenderTransformOrigin="0.45,-0.15" VerticalAlignment="Top" d:LayoutOverrides="Height" Name="btnCikar" />
    				<ComboBox HorizontalAlignment="Left" Height="25" Margin="107,0,0,65" VerticalAlignment="Bottom" Width="254" Name="cmbTeknisyen1" />
    				<TextBlock HorizontalAlignment="Left" Height="15" Margin="10,0,0,70" TextWrapping="Wrap" Text="1.Teknisyen :" VerticalAlignment="Bottom" Width="93" TextAlignment="Right"/>
    				<ComboBox HorizontalAlignment="Left" Height="25" Margin="107,0,0,36" VerticalAlignment="Bottom" Width="254" Name="cmbTeknisyen2" />
    				<TextBlock HorizontalAlignment="Left" Height="15" Margin="10,0,0,41" TextWrapping="Wrap" Text="2.Teknisyen :" VerticalAlignment="Bottom" Width="93" TextAlignment="Right"/>
    				<ComboBox HorizontalAlignment="Left" Height="25" Margin="107,0,0,6" VerticalAlignment="Bottom" Width="254" Name="cmbTeknisyen3" />
    				<TextBlock HorizontalAlignment="Left" Height="15" Margin="10,0,0,11" TextWrapping="Wrap" Text="3.Teknisyen :" VerticalAlignment="Bottom" Width="93" TextAlignment="Right"/>
    				<ScrollViewer HorizontalAlignment="Right" Margin="0,2,2,2" Width="400" >
    					<StackPanel x:Name="lstKontroller" Width="400" />
    				</ScrollViewer>
    			</Grid>
    		</controls:TabItem>
            <sdk:TabItem Header="Detaylar" Name="tabItem1">
                <Grid>
                    <dxg:AgDataGrid ActiveFilterEnabled="True" AllowColumnFiltering="True" AllowEditing="False" HorizontalAlignment="Stretch" IsColumnMenuEnabled="False" IsColumnMenuFrozenItemsEnabled="False" IsFooterMenuEnabled="False" Margin="2" Name="grdDetaylar" ShowAutoFilterRow="True" VerticalAlignment="Stretch" Width="Auto" />
                </Grid>
            </sdk:TabItem>
        </controls:TabControl>
        <Grid VerticalAlignment="Bottom" Margin="0,40,0,5">
        	<Grid.ColumnDefinitions>
        		<ColumnDefinition Width="15*"/>
        		<ColumnDefinition Width="35*"/>
        		<ColumnDefinition Width="15*"/>
        		<ColumnDefinition Width="35*"/>
        	</Grid.ColumnDefinitions>
        	<Grid.RowDefinitions>
        		<RowDefinition Height="3.3*"/>
        		<RowDefinition Height="3.3*"/>
        		<RowDefinition Height="3.3*"/>
        	</Grid.RowDefinitions>
        	<sdk:Label HorizontalAlignment="Right" Margin="0,2,4,2" Width="74" Content="Firma :" Foreground="#FF00AD91" FontWeight="Bold" FontStyle="Italic"/>
        	<TextBox x:Name="txtFirma" Grid.Column="1" Margin="2" TextWrapping="Wrap" IsReadOnly="True"/>
        	<sdk:Label HorizontalAlignment="Right" Margin="0,2,4,2" Width="74" Content="Araç :" Grid.Row="1" Foreground="#FF00AD91" FontWeight="Bold" FontStyle="Italic"/>
        	<TextBox x:Name="txtSistem" Grid.Column="1" Margin="2" TextWrapping="Wrap" Grid.Row="2" IsReadOnly="True"/>
        	<sdk:Label HorizontalAlignment="Right" Margin="0,2,4,2" Width="74" Content="Sistem :" Grid.Row="2" d:LayoutOverrides="GridBox" Foreground="#FF00AD91" FontWeight="Bold" FontStyle="Italic"/>
        	<TextBox x:Name="txtArac" Grid.Column="1" Margin="2,2,90,2" TextWrapping="Wrap" Grid.Row="1" d:LayoutOverrides="GridBox" KeyDown="txtArac_KeyDown" TabIndex="0" />
        	<sdk:Label HorizontalAlignment="Right" Margin="0,2,4,2" Width="74" Content="Grup :" Grid.Column="2" d:LayoutOverrides="HorizontalAlignment" Foreground="#FF00AC90" FontWeight="Bold" FontStyle="Italic"/>
        	<sdk:Label HorizontalAlignment="Right" Margin="0,2,4,2" Width="74" Content="Plaka :" Grid.Column="2" d:LayoutOverrides="HorizontalAlignment" Grid.Row="1" Foreground="#FF00AC90" FontWeight="Bold" FontStyle="Italic"/>
        	<sdk:Label HorizontalAlignment="Right" Margin="0,2,4,2" Width="93" Content="Montaj Tarihi :" Grid.Column="2" Grid.Row="2" FontWeight="Bold" Foreground="#FF00AC90" FontStyle="Italic"/>
        	<TextBox x:Name="txtGrup" Grid.Column="3" Margin="2" TextWrapping="Wrap" IsReadOnly="True"/>
        	<TextBox x:Name="txtPlaka" Grid.Column="3" Margin="2" TextWrapping="Wrap" IsReadOnly="True" Grid.Row="1" FontWeight="Bold" Foreground="#FFE80303" />
        	<TextBox x:Name="txtMontajTarihi" Grid.Column="3" Margin="2" TextWrapping="Wrap" IsReadOnly="True" Grid.Row="2"/>
        	<Button Content="Ara" Grid.Column="1" HorizontalAlignment="Left" Margin="205,2,2,2" Grid.Row="1" Width="38" Click="Button_Click" />
            <Button Content="Araç Bilgi" HorizontalAlignment="Right" Margin="0,2,96,2" Width="68" Grid.Column="1" Grid.Row="1" Name="btnAracAc" Click="btnAracAc_Click" Grid.ColumnSpan="2" />
        </Grid>
        <sdk:Label Height="22" Margin="0" Content="Garanti Süresi Geçmemiştir" FontWeight="Bold" FontSize="13.333" Foreground="#FF00AD91" FontStyle="Italic" VerticalAlignment="Top" HorizontalAlignment="Center" Name="lblHeader" />
    </Grid>
</controls:ChildWindow>